<?php

/**
 * usuarioadmin module helper.
 *
 * @package    toyomotor
 * @subpackage usuarioadmin
 * @author     Ing. Roberto Hernández De La Luz
 * @version    SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class usuarioadminGeneratorHelper extends BaseUsuarioadminGeneratorHelper
{
    
    	  public function linkToSave($object, $params)
 	  {
 	    return '<li class="sf_admin_action_save"><input type="submit" value="'.__($params['label'], array(), 'sf_admin').'" onclick="return verificarUsuarioadmin(this.form);"/></li>';
 	  }
 	
 	  public function linkToSaveAndAdd($object, $params)
	  {
 	    if (!$object->isNew())
 	    {
 	      return '';
	    }
 	
 	    return '<li class="sf_admin_action_save_and_add"><input type="submit" value="'.__($params['label'], array(), 'sf_admin').'" name="_save_and_add" onclick="return verificarUsuarioadmin(this.form);"/></li>';
 	  }
    
}
